import apiUrl from "../base";
import axios from '@/libs/axios';
const MonthlyDynamics = {
  //列表
  getDynamicRiskOrderList(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/list`,prames)
  },
  //配置--添加
  getDynamicApprovalPointApprovalConfiginsert(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicApprovalPoint/ApprovalConfig/insert`,prames)
  },
  //配置--回显
  getDynamicApprovalPointApprovalConfigquery(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicApprovalPoint/approvalConfig/query`,'')
  },
  //一级详情
  getDynamicRiskOrderdetailfirst(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/detail/first/${prames}`,'')
  },
  //二级详情
  getDynamicRiskOrderdetailsecond(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/detail/second/${prames}`,'')
  },
  //审核 签发--列表
  getDynamicRiskOrderoperation(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/operation/${prames}`,'')
  },
  //签发.审核--保存
  getDynamicRiskOrderoperate(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/operation`,prames)
  },
  //制定方案--列表
  getMeasuresDetailList(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/measures/${prames}`,'')
  },
  //作业风险类型--列表
  riskCategoryFindAll() {
    return axios.post(`${apiUrl.risk}v1/RiskCategory/findAll`,'')
  },
  //动态管控--列表
  dynamicControlReportList(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/lastMonthDynamic`,prames)
  },
  //项目数量
  dynamicControlReportStatistics(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/lastMonthDynamic/statistics`,prames)
  },
  //频次列表
  frequencyList() {
    return axios.post(`${apiUrl.risk}v1/Frequency/list`,'')
  },
  //制定方案--保存
  getDynamicRiskOrderacception(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/acception`,prames)
  },
  //动态新增
  dynamicRiskOrderAdd(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/add`,prames)
  },
  //下月风险在施选择统计
  nextMonthWorkedRiskStatistics(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/nextMonthWorkedRisk/statistics`,prames)
  },
  //下月风险在施选择列表
  nextMonthWorkedRiskList(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/nextMonthWorkedRisk`,prames)
  },
  //下月详情
  dynamicRiskOrderDetail(id) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/detail/second/${id}`,'')
  },
  //点击查看过往每月管控情况
  processControlHistory(id) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/processControl/history/${id}`,'')
  },
  //新建时获取措施
  measuresNewId(id) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/measures/new/${id}`,'')
  },
  //新建--方案制定-列表
  getDynamicRiskOrdermeasuresnew(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/measures/new/${prames}`,'')
  },
  //修订--列表
  getDynamicRiskOrderreviselist(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/revise/list/${prames}`,'')
  },
  //修订--方案制定-列表
  getDynamicRiskOrderrevisedetail(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/revise/detail/${prames}`,'')
  },
  //修订--提交
  getDynamicRiskOrderreviseadmission(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/revise/admission`,prames)
  },
  //新增时从上月动态管控表中获得的数据获取措施
  lastMeasuresDynamic(projectId,pointId,riskOrderId) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/measures/dynamic/${projectId}/${pointId}/${riskOrderId}`,'')
  },
  //新增时从上月动态管控表中获得的数据获取措施
  nextMeasuresDynamic(projectId,pointId,riskOrderId) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/measures/normal/${projectId}/${pointId}/${riskOrderId}`,'')
  },
  //点击编辑显示的信息
  editListId(dynamicRiskOrderListId) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/edit/list/${dynamicRiskOrderListId}`,'')
  },
  //动态编辑保存
  editParmes(prames) {
    return axios.post(`${apiUrl.risk}v1/DynamicRiskOrder/edit/submit`,prames)
  },
  //删除
  getDynamicRiskOrderremove(prames) {
    return axios.get(`${apiUrl.risk}v1/DynamicRiskOrder/remove/${prames}`,'')
  },
  //详情
  processDetailId(id) {
    return axios.get(`${apiUrl.risk}v1/RiskOrder/detail/${id}`,'')
  },

}
export default MonthlyDynamics
